package com.sdkj.log;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.servlet.http.HttpServletRequest;

import com.sdkj.Entity.BaseEntity;

@Entity
@Table(name="operation_log")
public class OperationLog extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String operation;
	private String uid;
	private String ip;
	private String opdevice;
	private String url;
	private String params;
	public void setOperation(String operation) {
		this.operation = operation;
	}
	public void setUid(String uid) {
		this.uid = uid;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public void setOpdevice(String opdevice) {
		this.opdevice = opdevice;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public void setParams(String params) {
		this.params = params;
	}
	@Column(length=50)
	public String getOperation() {
		return operation;
	}
	@Column(length=36)
	public String getUid() {
		return uid;
	}
	@Column(length=20)
	public String getIp() {
		return ip;
	}
	@Column(length=20)
	public String getOpdevice() {
		return opdevice;
	}
	@Column(length=100)
	public String getUrl() {
		return url;
	}
	@Column(length=200)
	public String getParams() {
		return params;
	}
	public OperationLog() {
		super();
	}
	public OperationLog(String uuid, Date createTime) {
		super(uuid, createTime);
	}
	public OperationLog(String operation, String uid, String ip,
			String opdevice, String url, String params) {
		super();
		this.operation = operation;
		this.uid = uid;
		this.ip = ip;
		this.opdevice = opdevice;
		this.url = url;
		this.params = params;
	}
	@Override
	public String toString() {
		return "OperationLog [operation=" + operation + ", uid=" + uid
				+ ", ip=" + ip + ", opdevice=" + opdevice + ", url=" + url
				+ ", params=" + params + "]";
	}
	
}
